<template>
  <div class="admin-dashboard">
    <h1>学校管理员面板</h1>
    
    <div class="welcome-message">
      <p>领导您好，欢迎使用学校管理系统</p>
    </div>

    <div class="dashboard-content">
      <div class="card">
        <h2>校园活动管理</h2>
        <p>发布和管理校园活动，如运动会、文艺汇演等</p>
        <router-link to="/admin/events" class="btn">进入活动管理</router-link>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'AdminDashboard'
};
</script>

<style scoped>
.admin-dashboard {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.welcome-message {
  background-color: #e3f2fd;
  padding: 20px;
  border-radius: 5px;
  margin-bottom: 30px;
  text-align: center;
}

.dashboard-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.card {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card h2 {
  margin-top: 0;
  color: #333;
}

.btn {
  display: inline-block;
  background-color: #2196F3;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #0b7dda;
}
</style>